<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<script type="text/javascript">
var num=['1','56','7','9'];
var max=num[0];
for(var i=0;i<num.length;i++){
	if(num[i]>max){
		max=num[i];
	}
}
document.write(max);
	




</script>


<body>
	
</body>
</html>